﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EF6Query.DBModel
{
    /// <summary>
    /// 产品色号表
    /// </summary>
    [Table("ProductColor")]
    public class ProductColor
    {
        /// <summary>
        /// 产品色号id，自增
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 色号名称
        /// </summary>
        public string ColorName { get; set; }

        /// <summary>
        /// 产品色号
        /// </summary>
        public int ProductPhaseld { get; set; }

        /// <summary>
        /// 产品id
        /// </summary>
        public int Productld { get; set; }

        /// <summary>
        ///色号描述
        /// </summary>
        public string ColorDesc { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        public static ProductColor CreateObject(int id, string ColorName, int ProductPhaseld, int Productld, string ColorDesc, DateTime CreateTime, DateTime UpdateTime)
        {
            return new ProductColor() { ID = id, ColorName = ColorName, ProductPhaseld = ProductPhaseld, Productld = Productld, ColorDesc = ColorDesc, CreateTime = CreateTime, UpdateTime = UpdateTime };
        }

    }
}
